#ifndef RECOGNITION_H

#define RECOGNITION_H

#include <math.h>
#include "trajectory.h"

#define DISTANCE2P(X,Y) pow(X-Y,2)
#define ACELERATION_MIN 10.0
#define MEAN_SPEED_MIN 3.0
#define POINTS_NUM_MIN 7

#define MIN3(R1, R2, R3) ((R1 < R2) ? (R1 < R3) ? R1 : R3 : (R2 < R3) ? R2 : R3)

void calculateAceleration(trajectory *trajectory_aux);
void calculateMeanSpeed (trajectory *trajectory_aux);
void gestureRecognition (trajectory *trajectory_aux);
void dtwRecognition (trajectory *trajectory_aux, trajectory *gesture_template);

#endif